package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.entity.App;
import com.yh.merchant.api.dto.AppDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AppConvert {

    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    AppDTO entity2Dto(App app);

    App dto2Entity(AppDTO appDTO);

    List<AppDTO> listEntity2ListDto(List<App> apps);
}
